<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ include file="/website/layout/tag.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/comm/comm.css" type="text/css"/>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/login/login.css" type="text/css"/>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/images/favicon.ico" type="image/x-icon" />
<script type='text/javascript' src='${pageContext.request.contextPath}/js/jquery-1.6.1.min.js'></script>
<title>帅气加才气吴易超后台系统</title>
</head>
<script type="text/javascript">
	$(document).ready(
		function() {
			//用户ID初始化.
			if ($('#id').val() == "") {
				$('#id').val('请输入用户名');
			}
		
			//错误消息显示.
			var errMsg = '<c:out value="${errMsg}"/>';
			if (errMsg != "") {
				alert(errMsg);
				$('#id').focus();
			}
		}
	);
	
	$("#id").blur(function(){
		if(this.value==''){ this.value='请输入用户名';} return true ;
	});
	
	$("#id").focus(function(){
		if(this.value=='请输入用户名') this.value=''; return true ; 
	});
</script>
<body class="loginbody">
<div id="loginBg">
	<div id="logo"></div>
	<div id="loginArea">
		<form:form id="loginForm" action="${pageContext.request.contextPath}/login.action" method="post">
		<ul>
			<li><input type="text"  value="<c:out value='${id}'/>" autocomplete="off" maxlength="50" name="j_username" id="id"></li>
			<li><input type="password" value="" maxlength="20" name="j_password" id="password"></li>
			<li>
				<div class="buttons">
					<a class="regular" href="#" onclick="$('#loginForm').submit();">
						<img src="${pageContext.request.contextPath}/images/btn_apply.png" alt=""/> 
						登录后台
					</a>
				</div>
			</li>
		</ul>
		</form:form>
	</div>
</div>
</body>
</html>
